package com.zjw.designPattern.singleton.enumType;

public class SingletonByEnum {

    public static void main(String[] args) {
        SingletonEnum instance = SingletonEnum.INSTANCE;
        SingletonEnum instance2 = SingletonEnum.INSTANCE;
        System.out.println(instance2 == instance);
    }
}
